﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Abigail.Model
{
    public class ArticleCategory
    {
        private int id;
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private int mainCategory;
        public int MainCategory
        {
            get { return mainCategory; }
            set { mainCategory = value; }
        }

        public bool HasMainCategory
        {
            get {
                if (mainCategory == 0)
                    return false;
                else
                    return true;
            }
        }

        public ArticleCategory()
        {
            id = 0;
            name = "";
            mainCategory = 0;
        }

        public ArticleCategory(int givenId, string givenName, int givenMain)
        {
            id = givenId;
            name = givenName;
            mainCategory = givenMain;
        }
    }
}
